package com.burstly.lib.component.networkcomponent.burstly.html.rewards;

import android.content.Context;
import android.widget.MediaController.MediaPlayerControl;
import com.burstly.lib.component.networkcomponent.burstly.NoSeekMediaController;
import com.burstly.lib.component.networkcomponent.burstly.wrapper.MediaPlayerControlWrapper;

final class RewardsMediaController extends NoSeekMediaController
{
  boolean mPaused;
  RewardsVideoView.IVideoEvents mVideoListener;

  RewardsMediaController(Context paramContext)
  {
    super(paramContext);
  }

  RewardsVideoView.IVideoEvents getVideoListener()
  {
    return this.mVideoListener;
  }

  boolean isPaused()
  {
    return this.mPaused;
  }

  public void setMediaPlayer(MediaController.MediaPlayerControl paramMediaPlayerControl)
  {
    super.setMediaPlayer(new MediaPlayerControlWrapper(paramMediaPlayerControl)
    {
      public void pause()
      {
        RewardsMediaController.this.mPaused = true;
        if (RewardsMediaController.this.mVideoListener != null)
          RewardsMediaController.this.mVideoListener.paused();
        super.pause();
      }

      public void start()
      {
        if ((RewardsMediaController.this.mVideoListener != null) && (RewardsMediaController.this.mPaused))
          RewardsMediaController.this.mVideoListener.unpaused();
        RewardsMediaController.this.mPaused = false;
        super.start();
      }
    });
  }

  void setVideoListener(RewardsVideoView.IVideoEvents paramIVideoEvents)
  {
    this.mVideoListener = paramIVideoEvents;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.component.networkcomponent.burstly.html.rewards.RewardsMediaController
 * JD-Core Version:    0.6.2
 */